/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: CollegeApprover
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2022/2/11 14:24
 * @version: 1.0
 */
public class CollegeApprover extends Approver{


    public CollegeApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest purchaseRequest) {
        if (purchaseRequest.getPrice() > 5000 && purchaseRequest.getPrice() <= 10000){
            System.out.println("请求编号id="+purchaseRequest.getId()+"被"+this.name+"处理");
        }else {
            approver.processRequest(purchaseRequest);
        }
    }
}
